package cn.hy.controller;

import cn.hy.redis.limiter.RateLimit;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaomu
 */
@RestController
public class IndexController {

    @RequestMapping("/index")
    @RateLimit(key = "index")
    public String say() {
        return "say index";
    }
}
